package cn.bsuc.crm.mapper;

import cn.bsuc.crm.entity.Module;
import cn.bsuc.crm.util.MenuTreeModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhuoyuan
 * @since 2022-10-03
 */
public interface ModuleMapper extends BaseMapper<Module> {

    //根据roleId查询用户所拥有的菜单，如果roleId == null, 则查询所有的
    List<MenuTreeModel> getAll(Integer roleId);
}
